/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * IndexUI.java
 *
 * Created on 21.06.2011, 21:55:05
 */
package farmacie;

/**
 *
 * @author Corina
 */
public class IndexUI extends javax.swing.JFrame {

    /** Creates new form IndexUI */
    public IndexUI() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        vanzare = new javax.swing.JToggleButton();
        stocuri = new javax.swing.JToggleButton();
        arhiva = new javax.swing.JToggleButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        vanzare.setBackground(new java.awt.Color(255, 255, 255));
        vanzare.setText("Vanzare noua");
        vanzare.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vanzareActionPerformed(evt);
            }
        });

        stocuri.setText("Consultare stocuri farmacie");

        arhiva.setText("Arhiva");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(vanzare)
                .addContainerGap(808, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addGap(96, 96, 96)
                .addComponent(stocuri)
                .addContainerGap(673, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(255, Short.MAX_VALUE)
                .addComponent(arhiva)
                .addGap(614, 614, 614))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(71, 71, 71)
                .addComponent(vanzare)
                .addGap(18, 18, 18)
                .addComponent(stocuri)
                .addGap(18, 18, 18)
                .addComponent(arhiva)
                .addContainerGap(447, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void vanzareActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vanzareActionPerformed
       new VanzareNouaUI().setVisible(true);
    }//GEN-LAST:event_vanzareActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new IndexUI().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JToggleButton arhiva;
    private javax.swing.JToggleButton stocuri;
    private javax.swing.JToggleButton vanzare;
    // End of variables declaration//GEN-END:variables
}
